import request from '@/utils/request';

export function login(username,password,identity) {
  return request({
    url: '/User/Login',
    method: 'post',
    data:{
      username,
      password,
      identity,
    }
  });
}

export function logout() {
  return request({
    url: '/User/LogOut',
    method: 'get'
  });
}

export function getUserInfo() {
  return request({
    url: '/User/GetUserInfo',
    method: 'get'
  });
}
